package mat.xls;

import jxl.Sheet;
import jxl.Workbook;
import jxl.read.biff.BiffException;
import obj.Accum;

import java.io.*;

public class Helper {
    public static void main(String[] args) throws BiffException, IOException {
        BufferedReader reader = new BufferedReader(new FileReader("data/accum.nokia.txt"));
        PrintStream out = new PrintStream(new FileOutputStream("yandex.direct.csv"), false, "KOI8-R");
        String line;
        int row = 9;
        while ((line = reader.readLine()) != null) {
            Accum accum = Accum.parseAccum(line, 1);
            for (String model : accum.devices) {
                Workbook workbook = Workbook.getWorkbook(new File("direct.xls"));
                Sheet sheet = workbook.getSheet(0);
//                sheet.
                row++;
            }
        }
        System.out.println();

    }
}
